package com.ellecity06.cwhiskymall.ui.calssify

import com.ellecity06.common.base.view.IUiState
import com.ellecity06.cwhiskymall.bean.response.ClassifyChildren
import com.ellecity06.cwhiskymall.bean.response.ClassifyResponse
import com.ellecity06.cwhiskymall.bean.response.GoodResponse

/**
 *@author joe
 *@data 2024/10/25
 *@describe
 */
sealed class ClassifyState : IUiState {
    /**
     * 顶部分类
     */
    data class ClassifyTopData(val data: List<ClassifyResponse>) : ClassifyState()

    /**
     * 左边分类
     */
    data class ClassifyLeftData(val data: List<ClassifyChildren>) : ClassifyState()

    /**
     * 右边商品
     */
    data class RefreshGoods(val list: List<GoodResponse>, val hasMore: Boolean) : ClassifyState()

    data class LoadMoreGoods(val list: List<GoodResponse>, val hasMore: Boolean) : ClassifyState()

    object Error : ClassifyState()

    /**
     * 显示弹框
     */
    data class showDialog(val data: List<ClassifyResponse>?) : ClassifyState()

    object noMoreData : ClassifyState()
}